﻿namespace GTAuto.DAL.Entities
{
    public class GTAd : Ad
    {
        public void UpdateTo(Ad c)
        {
            foreach (var prop in c.GetType().GetProperties())
            {
                var prop2 = c.GetType().GetProperty(prop.Name);
                prop2.SetValue(this, prop.GetValue(c, null), null);
            }
        }
    }
}
